import org.junit.Before;

import com.thoughtworks.selenium.DefaultSelenium;
import com.thoughtworks.selenium.Selenium;


public class JUnit {
	private Selenium selenium;
	
	@Before()
	public void setUp() throws Exception{
		selenium = new DefaultSelenium("localhost", 4444, "*chrome", "http://www.timesofindia.com/");
	    String css ="html body table#colour.c3 tbody tr td div#poldiv table tbody tr td form#pollform table tbody tr td div#pdiv table tbody tr td span#mathq2";
		String math= selenium.getText(css);
		String[] arrResult= math.split(" ");
		int firstnum = Integer.parseInt(arrResult[0]);
		int secondnum = Integer.parseInt(arrResult[2]);
		int result = firstnum + secondnum;
		String res = String.valueOf(result);
		
		
		
	}

}
